package com.py.wemedia.controller.v1;

import com.py.model.common.dtos.ResponseResult;
import com.py.model.user.pojos.ApUser;
import com.py.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/user")
public class WmUserController {

    @Autowired
    private WmUserService wmUserService;

    /**
     * 存入自媒体用户表
     * @param apUser
     * @return
     */
    @PostMapping("/save")
    public ResponseResult savePassUser(@RequestBody ApUser apUser){

        return  wmUserService.savePassUser(apUser);

    }

}
